package com.youmu.maven.emall.dao;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.github.pagehelper.Page;
import com.youmu.maven.emall.entity.Role;

@Repository
public interface RoleDao extends BaseDao {
	public Page<Role> getRolesByPage(Map<String, Object> parameters);

	public List<Role> getRoles(Map<String, Object> parameters);

	public void deleteRole(Map<String, Object> parameters);

	public Long insertRole(Map<String, Object> parameters);

	public void updateRole(Map<String, Object> parameters);

	public Set<Role> getRoleByUserId(@Param("id") Long id);
}
